﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using WsValid;
using System.Data.Objects;

namespace WorkTimePrj.Models
{
    [MetadataType(typeof(VAC_OT_NewMetaData))]
    public partial  class VAC_OT_New
    {
       
    }
    public class VAC_OT_NewMetaData
    {
        [Required(ErrorMessage = "*")]
        [Display(Name = "姓名")]
        public string account { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "类型")]
        public int type { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "开始时间")]
        public DateTime startDate { get; set; }

        [Required(ErrorMessage = "*")]
        [RegularExpression("[0-9]{1,4}", ErrorMessage = "*")]
        [Display(Name = "时长")]
        public int hour { get; set; }

        [Required(ErrorMessage = "*")]
        [Display(Name = "事由")]
        public string Cause { get; set; }
    }
}
